from django.http import HttpResponse 
from django.shortcuts import render_to_response 
from django.template import RequestContext 
from django.utils.translation import ugettext_lazy as _ 
from django.shortcuts import render  
def test2_view(request): 
   code = _("The second sentence is from the Python code."); 
   responseContext = {'lang':request.LANGUAGE_CODE, 
                       'code':code, 
                       } 


   #resp = render_to_response('test2/index.html', context=responseContext, 
                              # context_instance=RequestContext(request)) 
   # return resp
   return render(request, 'test2/index.html' , responseContext)
